package com.leenmvc.core.security.entity.core;

import com.leenmvc.core.annotation.DbInfo;
import com.leenmvc.core.annotation.PrimaryKey;
import com.leenmvc.core.base.BaseEntity;

import javax.validation.constraints.NotBlank;
import javax.validation.constraints.NotNull;
import java.util.Date;

/**
 *
 *
 * @author Mark sunlightcs@gmail.com
 * @since 1.0.0 2019-12-28
 */

@DbInfo(value = "sys_file_upload", comment = "文件上传")
public class SysFileUpload extends BaseEntity {

    @PrimaryKey
    private Long id;

    /**
     * 源文件名
     */
    @NotBlank
    private String originalName;
    /**
     * 文件名字
     */
    @NotBlank
    private String fileName;
    /**
     * 文件访问路径
     */
    @NotBlank
    private String filePath;

    /**
     * 存储在哪里
     */
    @NotNull
    private Integer place;
    /**
     * 是否在用 1-在 2-否 3-可清理
     */
    @NotNull
    private Integer status;
    /**
     * 文件大小
     */
    private Long fileSize;

    /**
     * 上传日期
     */
    private Date createDate;

    /**
     * 上传者
     */
    private Long creator;

    public Long getId() {
        return id;
    }

    public void setId(Long id) {
        this.id = id;
    }

    public String getOriginalName() {
        return originalName;
    }

    public void setOriginalName(String originalName) {
        this.originalName = originalName;
    }

    public String getFileName() {
        return fileName;
    }

    public void setFileName(String fileName) {
        this.fileName = fileName;
    }

    public String getFilePath() {
        return filePath;
    }

    public void setFilePath(String filePath) {
        this.filePath = filePath;
    }

    public Integer getPlace() {
        return place;
    }

    public void setPlace(Integer place) {
        this.place = place;
    }

    public Integer getStatus() {
        return status;
    }

    public void setStatus(Integer status) {
        this.status = status;
    }

    public Long getFileSize() {
        return fileSize;
    }

    public void setFileSize(Long fileSize) {
        this.fileSize = fileSize;
    }

    public Date getCreateDate() {
        return createDate;
    }

    public void setCreateDate(Date createDate) {
        this.createDate = createDate;
    }

    public Long getCreator() {
        return creator;
    }

    public void setCreator(Long creator) {
        this.creator = creator;
    }
}
